home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
utility
/
xset402.zip
/
INTRO
< prev
next >
Wrap
Text File
|
1994-03-29
|
15KB
|
480 lines
Subj: XSET402.ZIP
Thanks for your interest to XSET.
Due to a lot of requests from registers users, I decided to add
several more features to XSET. Here is the shareware version of the
program; uudecode it, unzip it and try it!
I guaranty it virus free (it is compiled on a stand-alone computer and
a scanning is performed each week).
Distribute it to as many people as you want and upload it to as many
BBS or servers as you can.
Shareware concept
=================
This package is Shareware.
That means that you may try it for evaluation and, if you like it,
you should consider to pay the registration fee (see the file
'REGISTER.HOW'). You will then become a registred user and so have
access to free support and free correction of aknowledged bugs.
Shareware also mean that you may distribute this package everywhere
and to everybody you want, providing that you always distribute the
complete package. If you have access to any BBS, FTP server, E-mail
server or any other kind of software distribution, feel free to
share it with other people; this may be useful for them and the
more people will use (and register) a shareware program, the more
stable it will be and the more functionalities could be added.
Warning: If you paid to get this package (e.g. it was onto a
------- floppy with other programs, you downloaded it from a
BBS), you only paid for the physical support (the floppy,
the transmission fee,...); this does not replace the
registration fee.
Note to software distributors:
-----------------------------
Nobody is allowed to make any benefit by distributing the XSET
package. Only regular distribution fee are allowed (price of
the floppy, of the network connection,...).
Marc Stern
-----------------------------------------------------------------------
File name: XSET402.ZIP
Description: Put ANYTHING in environment variable - GREAT
Author: Stern Marc (uploaded by the author)
E-mail: stern@mble.philips.be (internet)
>INTERNET:stern@mble.philips.be (compuserve)
Address: Av. de la basilique 376 b19 - 1080 Bruxelles - Belgium
Tel: +32-2 525.63.32 ( 9h - 16h Medium European Time )
+32-2 427.98.52 ( after 18h )
Hardware requirements: any compatible PC (XT, AT 286, 386, 486,...)
Software requirements: compatible with MS-DOS, PC-DOS, DR-DOS, 4DOS,
NDOS, Windows, OS/2, ...
Memory requirements: less than 100 Kb to run
Shareware (cheap)
Full-functionalities version
Self-documenting and external documentation included
Source not included
-----------------------------------------------------------------------
History of XSET
===============
Version 4.02
============
Changes:
-------
- DIFFDATE also allows 4 digits years (94, 1994, ...)
New functionalities:
-------------------
- XSET handles the special case of the variable 'windir' created in
Windows DOS boxes that you normally cannot use.
Bug corrections:
---------------
- ERRORLEVEL return was wrong for MS-DOS 6.0
- some problems dedicated to demo version in some very particular
configurations
Version 4.00
============
Changes:
-------
- ERRORLEVEL is PC-DOS 6.1 and MS-DOS 6.2 compatible
- /TIMEOUT n
Line input: If n < 0, time-out will be active during the whole input
process; if you wait more than abs(n) seconds between two
keys, the program will return the string typed so far.
KEY input: the program will return after the specified time if no
valid key was hit.
^^^^^
New functionalities:
-------------------
- /SEPARATOR string
This uses the characters from 'string' as word separator.
This option is intended to be used with /WORD and /COUNT.
- RANDOM n1 n2
This generates a random integer number between n1 and n2.
Version 3.50
============
New functionalities:
-------------------
This version now fully supports full edition of input lines.
Valid keys: Home Begin of line
End End of line
Left/Right One character left/right
Insert Toggle isert on/off
Delete Delete current character
BackSpace Delete previous character
Ctrl-home Erase to begin-of-line
Ctrl-end Erase to end-of-line
Escape Erase whole input
Enter Accept input
/DEFAULT set current value as default for the input prompt
/TIMEOUT n breaks the input if no key was hit after n seconds
/COLOR <color> change prompt color
valid colors = BLACK BLUE GREEN CYAN RED MAGENTA BROWN DARKGRAY
LIGHTGRAY LIGHTBLUE LIGHTGREEN LIGHTCYAN LIGHTRED
LIGHTMAGENTA YELLOW WHITE
HIGHLIGHT REVERSE
/BACKGROUND <color> will change prompt background color
valid colors = BLACK BLUE GREEN CYAN RED MAGENTA
BROWN DARKGRAY LIGHTGRAY
/BLINK displays a blinking prompt
/XPOS x
Set cursor to column x (or current - abs(x) if x < 0) before displaying prompt.
/YPOS y
Set cursor to line y (or current - abs(y) if y < 0) before displaying prompt.
/WINDOW left top right bottom
Draw a window (using color specified with /BACKGROUND).
/BOX
Draw a window around the prompt .
/BORDER
Add a border inside a window (specified with /WINDOW or /BOX).
CPU returns processor type (86, 186, 286, 386 or 486)
VOLLABEL returns the volume label of a disk
DRIVETEST tests if a disk drive is readable, writeable, invalid,
remote, removable, ram disk, subst, ...
/LINE accepts both positive and negative arguments:
1 will read first line
2 will read second line
-1 will read the last line,
-2 will read the line before, ...
XSET variable:
Before scanning the command line, the XSET program will look for
the 'XSET' variable into the current DOS environment. If it exists,
the XSET program will use the variable contents like option flags
you would have given onto the command line. After it will use the
option flags given onto the command line.
XSET_MSG variable:
Assigned by the XSET program itself to specify special events.
Changes:
-------
- FTIME also returns seconds (hh:mm:ss)
- ERRORLEVEL is MS-DOS 6.0 compatible
- /MATH accepts hexadecimal numbers followed by H
- /MATH accepts power expression ( x^y )
- KEY also returns non-printable characters as their decimal ASCII
code preceeded by a '#'.
- /REGEXP accepts a new special character '?' matching 'zero or one time'.
Bug corrections:
---------------
- This version now fully supports non standard mode like 30 or 60 lines.
- bug fix in function FEXT when no extension in filename.
- XSET did not recognize empty strings on command-line ("").
Version 3.00
============
Completely new interface to allow several operations in one shot.
ex: XSET/LOWER /PROMPT "Enter a filename: " FPATH
Type XSET /? to get the full description of all functionalities.
Version 2.60
============
New commands added:
XSET /VIEW var will show content of variable 'var'
This command is useful to use variables longer than 128 characters.
You can exit the help screen at any time by hitting Escape or Ctrl-C.
Version 2.50
============
New commands added:
XSET /VIEW display all environment variables
Version 2.40
============
New commands added:
XSET /SIZE display environment size and free size (in bytes).
Bug correction: bug fix in function DIFFDATE.
Version 2.30
============
New commands added:
Commands Arguments Action and value assigned to <dosvar>
-------- --------- -------------------------------------
DIFFDATE date1 date2 number of days between date1 and date2 (date2 - date1)
date format may be 'dd-mm-yy' or 'yymmdd'
(may also be mixed)
Bug correction: WORD 1 sometimes returned wrong result.
Version 2.20
============
New commands added:
Commands Arguments Action and value assigned to <dosvar>
-------- --------- -------------------------------------
YYMMDD system date in 'yymmdd' format
VARCOPY variable contents of DOS environment variable 'variable'
XSET /CLEAR will clear delete all variables from environment\r\n\n"
XSET /LOAD will load variables from standard input.
variables must have been saved with command 'SET'
ex: save variables with 'SET > SAVEFILE.VAR'
reload variables with 'XSET /LOAD < SAVEFILE.VAR'
Enhancements:
Function 'PASSWD' accepts up to 127 characters
Function 'MATH' accepts logical operators '= < > <= >='
Version 2.12
============
Bug correction: file functions returned TRUENAME.
Version 2.11
============
Bug correction: the BYTEFREE command was sometimes return -1.
Version 2.10
============
New commands added:
Commands Arguments Action and value assigned to <dosvar>
-------- --------- -------------------------------------
ERRORLEVEL none errorlevel code of last command
BYTEFREE [drive] number of bytes free on specified (or current) drive
DAYOFWEEK day in the week ( 0 = sunday,... )
CHANGE s1 s2 {s3} change <s1> by <s2> in <s3>
SEARCH str1 {str2} portion of <str1> matching <str2>
Version 2.03
============
Bug correction: little problem appearing sometimes
with KEY command.
Bug correction: garbage display when no prompt specified
with INPUT command.
Bug correction: strange behaviour on certain machines
when invoking for the first time the
DENSITY command.
Version 2.02
============
Bug correction: all INPUT commands where buggy
(due to a compilation problem).
Version 2.01
============
Bug correction: the command TRUENAME always returned an empty
string (due to a last minute change).
Version 2.0
===========
New commands added:
Commands Arguments Action and value assigned to <dosvar>
-------- --------- -------------------------------------
MIN ┌{str1...strn} minimum or maximum of numbers or strings list
MAX └{num1...numn} (one string may not contain <space> or <tab>)
FPATH {file} full pathname of a filename
FDRIVE {file} drive of a filename
FDIR {file} drive & directory of a filename
FEXT {file} extension of a file name (no period included)
FNAME {file} name of a file without extension
FXNAME {file} name & extension of a file
FSIZE {file} size of a file
TRUENAME {file} full truename of a file
LINE n read the <n>-th line from standard input
STDERR n read the <n>-th line from standard error
Version 1.1
===========
First shareware version.
Version 1.0
===========
Creation for personal use.
╔══════════════════════════════════════╗
║ XSET: Extended SET Instruction ║
║ ║
║ (C) 1991-1994 STERN Marc ║
╚══════════════════════════════════════╝
Everything you always wanted to put in an environment variable but
were afraid to ask DOS for...
XSET: The easy way to write efficient batch files.
XSET allows you to put EVERYTHING you want in a variable of the
current DOS environment and use it as if you assigned it the value
with the standard DOS command 'SET'. You will be able to write very
efficient batch files including string manipulation, calculation,...
XSET is the most powerful environment variables manipulation
program you ever saw. It also has a very easy and intuitive user
interface (very close to the DOS 'SET' command). It is not a resident
program; it so cannot interfere with any of your other applications.
XSET is fully compatible with MS-DOS (from 3.30), PC-DOS, DR-DOS, 4DOS,
NDOS, Windows, OS/2, ...
XSET has seven major features:
═════════════════════════════
- XSET permits to catch the output of any command (internal or
external) or program and put it into an environment variable.
- XSET has several built-in commands to modify the output of a
program or a string given on the command-line (extract a part of a
string,...)
- XSET has a built-in full floating-point calculation functionality:
You can program incremental loops, input a calculation string and
output the resulting number,...
- XSET can manage variable contents of more than 128 characters (your
path can now be as long as you want)
- XSET has some other built-in commands to give you access to some
system data (date, time, ...)
- XSET has built-in commands to clear all environment or restore a
previously saved one.
- XSET gives you access to high-level user interface input/output
(line-editing, colors, windows, boxes,...).
More than 60 commands to do all what you need.
STERN Marc
Av. de la Basilique 376 bte 19
1080 Bruxelles
Belgium
Tel: +32-2 525.63.32 ( 9h - 16h Central European Time )
+32-2 427.98.52 ( after 18h Central European Time )
E-mail: stern@mble.philips.be (internet)
>INTERNET:stern@mble.philips.be (compuserve)
see appendix in file XSET.DOC for other networks